import { defHttp } from "@/utils/http";

// ERP 值班柜信息 API
export const invtCabinetApi = {
	// 获得值班柜信息分页
	invtCabinetList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-cabinet/page`, params });
	},
	// 新增值班柜信息
	invtCabinetCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-cabinet/create`, data });
	},

	// 修改值班柜信息
	invtCabinetUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-cabinet/update`, data });
	},

	// 删除值班柜信息
	invtCabinetDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-cabinet/delete?id=` + id });
	}
};
